<style>
    ul.upload{
        list-style: none;
    }
    ul.upload li{
        float: left;
        margin-right: 20px;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 10px;
        height: 52px;
        position: relative;
    }
    ul.upload li img{
        width: 50px;
    }
    ul.upload li input{
        position: absolute;
        top: -8px;
        right: -8px;
    }
</style>
<ul class="upload">
    <?php
    $this->widget('ext.xupload.XUploadWidget', array(
        'url' => Yii::app()->createUrl("admincp/product/upload"),
        'model' => $model,
        'attribute' => 'file',
        'multiple' => true,
    ));
    ?>
    <form id="formUpload">
        <?php
        foreach ($img as $value) {
            ?>
            <li>
                <?php echo CHtml::image($value->linkImg) ?>
                <input type="checkbox" name="ids[]">
            </li>  
        <?php }
        ?>
    </form>
</ul>
